<template>
    <div>
        <el-card>
            <CategorySelector :disabled="showstatus != STATUS.SPULIST" />
        </el-card>
        <el-card class="mt-10">
            <SpuList v-model="showstatus"></SpuList>
            <SpuForm v-model="showstatus"></SpuForm>
            <SkuForm v-model="showstatus"></SkuForm>
        </el-card>
    </div>
</template>

<script lang="ts">
export enum STATUS {
    SPULIST = 1,
    SPUFORM = 2,
    SKUFORM = 3
}
</script>
<script setup lang="ts">
import SpuList from './components/spuList/index.vue'
import SpuForm from './components/spuForm/index.vue'
import SkuForm from './components/skuForm/index.vue'
import { ref } from 'vue';
const showstatus = ref(1)
</script>

<style scoped>

</style>